<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>音乐</title>
</head>
<body>
    <audio id="music" src="./midia/01.mp3" autoplay controls loop></audio>
    
    <hr>
    <button onclick="play()" >播放</button>
    <button onclick="stop()">暂停</button>

</body>
<script> 
 function play(){
    document.getElementById("music").play();
 }
 function stop(){
    document.getElementById("music").pause();
 }
</script>
</html>